# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo01
# Description:
# Author:       98745
# Date:         2019/3/3
#-------------------------------------------------------------------------------

class Person:
    def __init__(self,name='bill'):
        print('构造方法已经被调用')
        self.name=name
    def get(self):
        return self.name
    def set(self,name):
        self.name=name

p=Person()
print(p.get())
p2=Person(name='mike')
print(p2.get())
p.set(name='john')
print(p.get())